#地址管理
index_url='http://127.0.0.1/' #首页
login_url='http://127.0.0.1/Home/user/login.html' #前台登陆页
reg_url='http://127.0.0.1/Home/user/reg.html' #前台注册页
admin_login_url = "http://127.0.0.1/User/login.html" # 后台登录页url


from selenium.webdriver.common.by import By
#前台登录
login_link=By.PARTIAL_LINK_TEXT,"登录"
login_username=By.ID,"username"
login_pwd=By.ID,"password"
login_verify_code=By.CSS_SELECTOR,"#verify_code"
login_btn=By.CSS_SELECTOR,".J-login-submit"
login_fail_btn=By.CSS_SELECTOR,".layui-layer-btn0"
login_fail_content=By.CSS_SELECTOR,".layui-layer-content"
login_logout=By.PARTIAL_LINK_TEXT,"安全退出" #标志登录成功的元素
login_success_userinfo=By.CSS_SELECTOR,".red.userinfo" #登陆后用户昵称

#配置购物车元素
cart_search_input=By.CSS_SELECTOR,"#q"
cart_search_btn=By.XPATH,"//*[@class='ecsc-search-button']"
cart_goods_link=By.PARTIAL_LINK_TEXT,"小米手机5,十余项黑科技，很轻狠快"
cart_join_cart_btn=By.XPATH,"//*[@id='join_cart']"
cart_iframe_element=By.XPATH,"//*[@id='layui-layer-iframe1']"
cart_add_cart_result_info=By.XPATH,"//*[@class='conect-title']/span"
cart_iframe_close_btn=By.CSS_SELECTOR,".layui-layer-ico"

#购物车元素
#我的购物车元素信息
my_cart_btn=By.XPATH,"//*[@class='c-n fl']/span"
#第一个商品选择按钮
my_cart_checkCart_frist=By.XPATH,"//*[@id='tpshop-cart']/table/tbody/tr[2]"
#全选按钮
my_cart_checkCartAll=By.XPATH,"//*[contains(@class,'sc-total-list')]"
#去结算按钮
my_cart_settle_account_btn=By.CSS_SELECTOR,".gwc-qjs"
#定位收货人
my_cart_consignee=By.CSS_SELECTOR,".address_id>input"
#提交订单按钮
my_cart_submit_order_btn=By.CSS_SELECTOR,".Sub-orders"
#提交订单后结果信息
my_cart_submit_order_result_info=By.CSS_SELECTOR,".erhuh>h3"